#!/bin/sh

set -e
Bin=$(perl -MFindBin -e 'print $FindBin::Bin')

export CAMLI_PASSWORD=`cat $HOME/.config/perkeep/camorg-blobserver.pass`
export CAMLI_ROOT=$Bin/blobserver-example/root

cd $Bin/..
go run make.go \
	-embed_static=false \
	-targets=camlistore.org/server/perkeepd && \
./bin/perkeepd \
	-openbrowser=false \
	-configfile=$Bin/blobserver-example/example-blobserver-config.json \
	-listen=:3179 "$@"

